package com.ruoyi.system.domain.distribution;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

public class PlatformTerrace extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 平台分销收益ID */
    private Integer terraceId;

    /** 平台分销收益金额 */
    @Excel(name = "平台分销收益金额")
    private Double terraceMoney;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long customerId;

    /** 邀请人ID */
    @Excel(name = "邀请人ID")
    private Long inviterId;
    @Excel(name = "邀请人账号")
    private String inviter;
    @Excel(name = "用户账号")
    private String loginName;


    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedTime;

    public String getInviter() {
        return inviter;
    }

    public void setInviter(String inviter) {
        this.inviter = inviter;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public void setTerraceId(Integer terraceId)
    {
        this.terraceId = terraceId;
    }

    public Integer getTerraceId()
    {
        return terraceId;
    }
    public void setTerraceMoney(Double terraceMoney)
    {
        this.terraceMoney = terraceMoney;
    }

    public Double getTerraceMoney()
    {
        return terraceMoney;
    }
    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }
    public void setInviterId(Long inviterId)
    {
        this.inviterId = inviterId;
    }

    public Long getInviterId()
    {
        return inviterId;
    }
    public void setModifiedTime(Date modifiedTime)
    {
        this.modifiedTime = modifiedTime;
    }

    public Date getModifiedTime()
    {
        return modifiedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("terraceId", getTerraceId())
                .append("terraceMoney", getTerraceMoney())
                .append("customerId", getCustomerId())
                .append("inviterId", getInviterId())
                .append("modifiedTime", getModifiedTime())
                .append("inviter", getInviter())
                .append("loginName", getLoginName())
                .toString();
    }
}
